
Page({
  data: {
    processData: [{
        name: '第一步',
        desc1:'成功邀请',
        desc2: '一位商家注册',
      start: '#f2ebd4',
      },
      {
        name: '第二步',
        desc1: '嗨森官方核实',
        desc2: ''
      },
      {
        name: '第三步',
        desc1: '成功获得20元',
        desc2: '至佣金钱包里面',
        end: '#f2ebd4',
      }],
    path: '/pages/shop_apply/index?pid=',
  },

  onLoad: function (options) {
   
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    var config = wx.getStorageSync('config');
    var title = config[5].value ? config[5].value : '邀请您来入住嗨森全城，参与全城乐购';
    var uid = wx.getStorageSync('uid');
    var pid = uid ? uid : '';
    var path = this.data.path + pid;
    var image = 'https://mini.888dcy.com/storage/shop_share.jpg'
    return {
      title: title,
      path: path,
      imageUrl: image
    }
  },
  //调用子组件的方法
  getSharePoster: function () {
    var uid = wx.getStorageSync('uid');
    var pid = uid ? uid : '';
    var param = {
      page: 'pages/shop_apply/index',
      scene: 'pid=' + pid
    }
    this.setData({
      param : param
    })
    this.selectComponent('#shopPoster').getDiy(this.data.hasPost)
  },
  myEventListener: function (e) {
    this.setData({
      showpost: false,
      hasPost: e.detail.status
    })
  },
})